<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Form</title>
</head>
<body>
<div> 
    <form action="{:U('Home/List/editDo')}" method="post" accept-charset="utf-8">
         分类：
        <select name='category_id'>
            <option value ="">分类</option>
            <foreach name='plists' item='plist'>
            <option value ="{$plist.id}"  <if condition="$row.category_id eq $plist['id']">selected='selected'</if>  >{$plist.title}</option>
            </foreach>
        </select><br/>
        标题:<input type="text" name="title" value="{$row['title']}"><br/>
        网址:<input type="text" name="url" value="{$row['url']}"><br/>    
        <input type="hidden" name="id" value="{$row['id']}">
        <p><input type="submit" value="提交"></p>
    </form>
</div>

</body>
</html>
